<template>
   <div class="app-content">
     <div class="header">
      <div class="title">单位标题</div>
      <el-button type="primary" size="small" v-show="joinShow" @click="addContrast(item)">+对比</el-button>
      <el-button type="primary" size="small" v-show="!joinShow" disabled >已对比</el-button>
     </div>
     <div class="content"></div>
     <!-- 小球 -->
    <FloatBall :text=bollNumer.toString()></FloatBall>
   </div>
</template>

<script>
import FloatBall from '@/components/FloatBall'

export default {
  components: {
    FloatBall
  },
  data () {
    return {
      bollNumer: 0,
      joinShow: true
    }
  },
  methods: {
    addContrast () {
      this.bollNumer++
      this.joinShow = false
    }
  }
}
</script>
<style lang="scss" scoped>
.header{
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  padding:10px 20px;
}
.content{
  height: 2000px;
}

</style>
